import com.sun.org.apache.xpath.internal.operations.Bool;
import com.xaioran.security.config.MyPasswordEncoder;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class test  {
    public  static void main(String args[]) {

        BCryptPasswordEncoder  bCryptPasswordEncoder =new BCryptPasswordEncoder();
       // String password=bCryptPasswordEncoder.encode("123");
       // System.out.println(password);
        //$2a$10$Vz2Mx5H77j8s8s.TJnDPjuJvoEdmqGb1FT6Qn3/RKc/x5PwPTG8.m
        //$2a$10$VVZppCxW2PP4t6qLzU1GMOBLDmyGded6CkqU9l0g3fV9SVs2VOHA6
        //$2a$10$qgDh8J1aK3AIHVB8MPd5/OJCj62OaSzC1VLwwPETJn2abgkFMezWS
        String formencocde="123";
        String dataPassword="$2a$10$qgDh8J1aK3AIHVB8MPd5/OJCj62OaSzC1VLwwPETJn2abgkFMezWS";
        boolean a= bCryptPasswordEncoder.matches(formencocde,dataPassword);
        System.out.println(a);

    }
}
